<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateRsSendingMachineMsg extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('rs_sending_machine_msg', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->string('type')->comment('群发消息类型');
            $table->string('name')->comment('名称');
            $table->integer('status')->default(0)->comment('是否开启 0 否 1是');
            $table->string('webhook')->comment('机器人webhook');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('rs_sending_machine_msg');
    }
}
